home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5647 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. Path: mxsld2.pd.infn.it!LORETI
  3. From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
  4. Subject: Re: Fast Fields?
  5. X-Nntp-Posting-Host: mxsld2.pd.infn.it
  6. Message-ID: <Dn2CD2.MFH@news.cern.ch>
  7. Sender: news@news.cern.ch (USENET News System)
  8. Reply-To: loreti@mxsld2.pd.infn.it
  9. Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
  10. References: <4fqj6v$i71@hermes.louisville.edu>
  11. Date: Tue, 20 Feb 1996 07:19:49 GMT
  12.  
  13. In article <4fqj6v$i71@hermes.louisville.edu>, arwild01@homer.louisville.edu (Alan Wild) writes:
  14. >Actually I'm more concerned with convienent.  I am currently coding a
  15. >small routine to parse a space delimted text file, but I only need to
  16. >keep field #6 of 8.  I know I could simply declare temporary variables
  17. >to store the extra functions and fscanf my way through the file, but is
  18. >there an alternative?
  19. >
  20. >Basically I'm lookng for some of the functionality of perl/awk in a
  21. >C routine so that I don't have to deal with dummy variables and whatnot.
  22. >
  23. >BTW, This project has to be done in C.  This is only a small piece of
  24. >the whole puzzle, but an essential piece nonetheless.
  25. >
  26. >Any thoughts?
  27. >
  28. >-Alan
  29.  
  30. I too would have considered an AWK program, probably an one-liner; why
  31. do you want it in C?  Homework :-) ?
  32. --
  33. Maurizio Loreti                       http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
  34. Un. of Padova, Dept. of Physics - Padova, Italy          loreti@padova.infn.it
  35.